﻿
namespace Indeco.G24.Windows.Forms
{
	/// <summary>
	/// This is the abstract edit form for the <see cref="Entities.TinTuc"/> entity.
	/// </summary>
	/// <remarks>This class is overwritten by .netTiers at each generation.</remarks>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class TinTucEditControlBase : System.Windows.Forms.UserControl
	{
		#region Fields
		
		//private System.Windows.Forms.TableLayoutPanel uxTableLayoutPanel;
		/// <summary>
		/// The ErrorProvider for the Entity;
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxErrorProvider;
		
		/// <summary>
		/// The BindingSource for the entity.
		///</summary>
		protected System.Windows.Forms.BindingSource uxBindingSource;
						
		
		/// <summary>
		/// TextBox for the IDTinTuc property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxIDTinTuc;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDTinTuc property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDTinTucLabel;
		
		/// <summary>
		/// ComboBox for the IDTinTucDanhMuc property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDTinTucDanhMuc;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDTinTucDanhMuc property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDTinTucDanhMucLabel;
		
		/// <summary>
		/// TextBox for the TieuDe property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxTieuDe;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the TieuDe property.
		/// </summary>
		protected System.Windows.Forms.Label uxTieuDeLabel;
		
		/// <summary>
		/// TextBox for the MoTa property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxMoTa;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the MoTa property.
		/// </summary>
		protected System.Windows.Forms.Label uxMoTaLabel;
		
		/// <summary>
		/// TextBox for the NoiDung property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxNoiDung;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the NoiDung property.
		/// </summary>
		protected System.Windows.Forms.Label uxNoiDungLabel;
		
		/// <summary>
		/// TextBox for the HinhMinhHoa property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxHinhMinhHoa;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the HinhMinhHoa property.
		/// </summary>
		protected System.Windows.Forms.Label uxHinhMinhHoaLabel;
		
		/// <summary>
		/// TextBox for the MoTaHinh property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxMoTaHinh;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the MoTaHinh property.
		/// </summary>
		protected System.Windows.Forms.Label uxMoTaHinhLabel;
		
		/// <summary>
		/// TextBox for the SolanXem property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxSolanXem;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the SolanXem property.
		/// </summary>
		protected System.Windows.Forms.Label uxSolanXemLabel;
		
		/// <summary>
		/// TextBox for the NguonTin property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxNguonTin;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the NguonTin property.
		/// </summary>
		protected System.Windows.Forms.Label uxNguonTinLabel;
		
		/// <summary>
		/// TextBox for the NhaCungCap property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxNhaCungCap;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the NhaCungCap property.
		/// </summary>
		protected System.Windows.Forms.Label uxNhaCungCapLabel;
		
		/// <summary>
		/// CheckBox for the TrangThai property.
		/// </summary>
		protected System.Windows.Forms.CheckBox uxTrangThai;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the TrangThai property.
		/// </summary>
		protected System.Windows.Forms.Label uxTrangThaiLabel;
		
		/// <summary>
		/// DataTimePicker for the ThoiDiemChinhSua property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxThoiDiemChinhSua;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ThoiDiemChinhSua property.
		/// </summary>
		protected System.Windows.Forms.Label uxThoiDiemChinhSuaLabel;
		
		/// <summary>
		/// DataTimePicker for the ThoiDiemCapNhat property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxThoiDiemCapNhat;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ThoiDiemCapNhat property.
		/// </summary>
		protected System.Windows.Forms.Label uxThoiDiemCapNhatLabel;
		#endregion
		
		#region Main entity
		private Entities.TinTuc _TinTuc;
		/// <summary>
		/// Gets or sets the <see cref="Entities.TinTuc"/> entity to edit with this form.
		/// </summary>
		/// <value>The <see cref="Entities.TinTuc"/> instance.</value>
		public Entities.TinTuc TinTuc
		{
			get {return this._TinTuc;}
			set
			{
				this._TinTuc = value;
				if (value != null) 
				{
					this.uxBindingSource.DataSource = value;
					BindControls();
				}			
				
			}
		}
		#endregion
		
		/// <summary>
		/// Binds the controls.
		/// </summary>
		private void BindControls()
		{
			this.uxIDTinTuc.DataBindings.Clear();
			this.uxIDTinTuc.DataBindings.Add("Text", this.uxBindingSource, "IDTinTuc", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDTinTucDanhMuc.DataBindings.Clear();
			this.uxIDTinTucDanhMuc.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDTinTucDanhMuc", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxTieuDe.DataBindings.Clear();
			this.uxTieuDe.DataBindings.Add("Text", this.uxBindingSource, "TieuDe", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxMoTa.DataBindings.Clear();
			this.uxMoTa.DataBindings.Add("Text", this.uxBindingSource, "MoTa", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxNoiDung.DataBindings.Clear();
			this.uxNoiDung.DataBindings.Add("Text", this.uxBindingSource, "NoiDung", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxHinhMinhHoa.DataBindings.Clear();
			this.uxHinhMinhHoa.DataBindings.Add("Text", this.uxBindingSource, "HinhMinhHoa", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxMoTaHinh.DataBindings.Clear();
			this.uxMoTaHinh.DataBindings.Add("Text", this.uxBindingSource, "MoTaHinh", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxSolanXem.DataBindings.Clear();
			this.uxSolanXem.DataBindings.Add("Text", this.uxBindingSource, "SolanXem", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxNguonTin.DataBindings.Clear();
			this.uxNguonTin.DataBindings.Add("Text", this.uxBindingSource, "NguonTin", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxNhaCungCap.DataBindings.Clear();
			this.uxNhaCungCap.DataBindings.Add("Text", this.uxBindingSource, "NhaCungCap", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxTrangThai.DataBindings.Clear();
			this.uxTrangThai.DataBindings.Add("Checked", this.uxBindingSource, "TrangThai", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxThoiDiemChinhSua.DataBindings.Clear();
			this.uxThoiDiemChinhSua.DataBindings.Add("Value", this.uxBindingSource, "ThoiDiemChinhSua", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxThoiDiemCapNhat.DataBindings.Clear();
			this.uxThoiDiemCapNhat.DataBindings.Add("Value", this.uxBindingSource, "ThoiDiemCapNhat", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
		}					
		
		#region Constructor
		
		/// <summary>
		/// Initializes a new instance of the <see cref="TinTucEditControlBase"/> class.
		/// </summary>
		public TinTucEditControlBase()
		{
			InitializeComponent();			
			
			this.uxBindingSource.CurrentItemChanged += new System.EventHandler(uxBindingSource_currentItemChanged);
		}		
		
		/// <summary>
		/// 
		/// </summary>
		private void uxBindingSource_currentItemChanged(object sender, System.EventArgs e)
		{
			if (_TinTuc != null) _TinTuc.Validate();
		}	
				
		/// <summary>
		/// Initializes the component.
		/// </summary>
		public void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.uxErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxBindingSource = new System.Windows.Forms.BindingSource(this.components);
			
			//this.uxTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
			this.uxIDTinTuc = new System.Windows.Forms.TextBox();
			uxIDTinTucLabel = new System.Windows.Forms.Label();
			this.uxIDTinTucDanhMuc = new System.Windows.Forms.ComboBox();
			uxIDTinTucDanhMucLabel = new System.Windows.Forms.Label();
			this.uxTieuDe = new System.Windows.Forms.TextBox();
			uxTieuDeLabel = new System.Windows.Forms.Label();
			this.uxMoTa = new System.Windows.Forms.TextBox();
			uxMoTaLabel = new System.Windows.Forms.Label();
			this.uxNoiDung = new System.Windows.Forms.TextBox();
			uxNoiDungLabel = new System.Windows.Forms.Label();
			this.uxHinhMinhHoa = new System.Windows.Forms.TextBox();
			uxHinhMinhHoaLabel = new System.Windows.Forms.Label();
			this.uxMoTaHinh = new System.Windows.Forms.TextBox();
			uxMoTaHinhLabel = new System.Windows.Forms.Label();
			this.uxSolanXem = new System.Windows.Forms.TextBox();
			uxSolanXemLabel = new System.Windows.Forms.Label();
			this.uxNguonTin = new System.Windows.Forms.TextBox();
			uxNguonTinLabel = new System.Windows.Forms.Label();
			this.uxNhaCungCap = new System.Windows.Forms.TextBox();
			uxNhaCungCapLabel = new System.Windows.Forms.Label();
			this.uxTrangThai = new System.Windows.Forms.CheckBox();
			uxTrangThaiLabel = new System.Windows.Forms.Label();
			this.uxThoiDiemChinhSua = new System.Windows.Forms.DateTimePicker();
			uxThoiDiemChinhSuaLabel = new System.Windows.Forms.Label();
			this.uxThoiDiemCapNhat = new System.Windows.Forms.DateTimePicker();
			uxThoiDiemCapNhatLabel = new System.Windows.Forms.Label();
			
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).BeginInit();
			this.SuspendLayout();
			
			// 
			// uxTableLayoutPanel
			// 
			//this.uxTableLayoutPanel.AutoSize = true;
			//this.uxTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			//this.uxTableLayoutPanel.ColumnCount = 2;
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 250F));
			//this.uxTableLayoutPanel.Location = new System.Drawing.System.Drawing.Point(3, 3);
			//this.uxTableLayoutPanel.Name = "uxTableLayoutPanel";
			//this.uxTableLayoutPanel.RowCount = 2;
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.Size = new System.Drawing.Size(450, 50);
			//this.uxTableLayoutPanel.TabIndex = 0;
			
			//
			// uxErrorProvider
			//
			this.uxErrorProvider.ContainerControl = this;
			this.uxErrorProvider.DataSource = this.uxBindingSource;
			
			//
			// uxIDTinTucLabel
			//
			this.uxIDTinTucLabel.Text = "IDTinTuc:";
			this.uxIDTinTucLabel.Location = new System.Drawing.Point(3, 0);
			this.Controls.Add(this.uxIDTinTucLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDTinTucLabel);			
			//
			// uxIDTinTuc
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDTinTuc);
			this.uxIDTinTuc.Location = new System.Drawing.Point(160, 0);
			this.Controls.Add(this.uxIDTinTuc);
			//
			// uxIDTinTucDanhMucLabel
			//
			this.uxIDTinTucDanhMucLabel.Text = "IDTinTucDanhMuc:";
			this.uxIDTinTucDanhMucLabel.Location = new System.Drawing.Point(3, 26);
			this.Controls.Add(this.uxIDTinTucDanhMucLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDTinTucDanhMucLabel);			
			//
			// uxIDTinTucDanhMuc
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDTinTucDanhMuc);
			this.uxIDTinTucDanhMuc.Location = new System.Drawing.Point(160, 26);
			this.Controls.Add(this.uxIDTinTucDanhMuc);
			//
			// uxTieuDeLabel
			//
			this.uxTieuDeLabel.Text = "TieuDe:";
			this.uxTieuDeLabel.Location = new System.Drawing.Point(3, 52);
			this.Controls.Add(this.uxTieuDeLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxTieuDeLabel);			
			//
			// uxTieuDe
			//
			this.uxTieuDe.Width = 250;
			this.uxTieuDe.MaxLength = 300;
			//this.uxTableLayoutPanel.Controls.Add(this.uxTieuDe);
			this.uxTieuDe.Location = new System.Drawing.Point(160, 52);
			this.Controls.Add(this.uxTieuDe);
			//
			// uxMoTaLabel
			//
			this.uxMoTaLabel.Text = "MoTa:";
			this.uxMoTaLabel.Location = new System.Drawing.Point(3, 78);
			this.Controls.Add(this.uxMoTaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxMoTaLabel);			
			//
			// uxMoTa
			//
			this.uxMoTa.Width = 250;
			this.uxMoTa.MaxLength = 1024;
			//this.uxTableLayoutPanel.Controls.Add(this.uxMoTa);
			this.uxMoTa.Location = new System.Drawing.Point(160, 78);
			this.Controls.Add(this.uxMoTa);
			//
			// uxNoiDungLabel
			//
			this.uxNoiDungLabel.Text = "NoiDung:";
			this.uxNoiDungLabel.Location = new System.Drawing.Point(3, 104);
			this.Controls.Add(this.uxNoiDungLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxNoiDungLabel);			
			//
			// uxNoiDung
			//
			this.uxNoiDung.Width = 250;
			this.uxNoiDung.MaxLength = 16;
			//this.uxTableLayoutPanel.Controls.Add(this.uxNoiDung);
			this.uxNoiDung.Location = new System.Drawing.Point(160, 104);
			this.Controls.Add(this.uxNoiDung);
			//
			// uxHinhMinhHoaLabel
			//
			this.uxHinhMinhHoaLabel.Text = "HinhMinhHoa:";
			this.uxHinhMinhHoaLabel.Location = new System.Drawing.Point(3, 130);
			this.Controls.Add(this.uxHinhMinhHoaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxHinhMinhHoaLabel);			
			//
			// uxHinhMinhHoa
			//
			this.uxHinhMinhHoa.Width = 250;
			this.uxHinhMinhHoa.MaxLength = 200;
			//this.uxTableLayoutPanel.Controls.Add(this.uxHinhMinhHoa);
			this.uxHinhMinhHoa.Location = new System.Drawing.Point(160, 130);
			this.Controls.Add(this.uxHinhMinhHoa);
			//
			// uxMoTaHinhLabel
			//
			this.uxMoTaHinhLabel.Text = "MoTaHinh:";
			this.uxMoTaHinhLabel.Location = new System.Drawing.Point(3, 156);
			this.Controls.Add(this.uxMoTaHinhLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxMoTaHinhLabel);			
			//
			// uxMoTaHinh
			//
			this.uxMoTaHinh.Width = 250;
			this.uxMoTaHinh.MaxLength = 300;
			//this.uxTableLayoutPanel.Controls.Add(this.uxMoTaHinh);
			this.uxMoTaHinh.Location = new System.Drawing.Point(160, 156);
			this.Controls.Add(this.uxMoTaHinh);
			//
			// uxSolanXemLabel
			//
			this.uxSolanXemLabel.Text = "SolanXem:";
			this.uxSolanXemLabel.Location = new System.Drawing.Point(3, 182);
			this.Controls.Add(this.uxSolanXemLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxSolanXemLabel);			
			//
			// uxSolanXem
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxSolanXem);
			this.uxSolanXem.Location = new System.Drawing.Point(160, 182);
			this.Controls.Add(this.uxSolanXem);
			//
			// uxNguonTinLabel
			//
			this.uxNguonTinLabel.Text = "NguonTin:";
			this.uxNguonTinLabel.Location = new System.Drawing.Point(3, 208);
			this.Controls.Add(this.uxNguonTinLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxNguonTinLabel);			
			//
			// uxNguonTin
			//
			this.uxNguonTin.Width = 250;
			this.uxNguonTin.MaxLength = 200;
			//this.uxTableLayoutPanel.Controls.Add(this.uxNguonTin);
			this.uxNguonTin.Location = new System.Drawing.Point(160, 208);
			this.Controls.Add(this.uxNguonTin);
			//
			// uxNhaCungCapLabel
			//
			this.uxNhaCungCapLabel.Text = "NhaCungCap:";
			this.uxNhaCungCapLabel.Location = new System.Drawing.Point(3, 234);
			this.Controls.Add(this.uxNhaCungCapLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxNhaCungCapLabel);			
			//
			// uxNhaCungCap
			//
			this.uxNhaCungCap.Width = 250;
			this.uxNhaCungCap.MaxLength = 25;
			//this.uxTableLayoutPanel.Controls.Add(this.uxNhaCungCap);
			this.uxNhaCungCap.Location = new System.Drawing.Point(160, 234);
			this.Controls.Add(this.uxNhaCungCap);
			//
			// uxTrangThaiLabel
			//
			this.uxTrangThaiLabel.Text = "TrangThai:";
			this.uxTrangThaiLabel.Location = new System.Drawing.Point(3, 260);
			this.Controls.Add(this.uxTrangThaiLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxTrangThaiLabel);			
			//
			// uxTrangThai
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxTrangThai);
			this.uxTrangThai.Location = new System.Drawing.Point(160, 260);
			this.Controls.Add(this.uxTrangThai);
			//
			// uxThoiDiemChinhSuaLabel
			//
			this.uxThoiDiemChinhSuaLabel.Text = "ThoiDiemChinhSua:";
			this.uxThoiDiemChinhSuaLabel.Location = new System.Drawing.Point(3, 286);
			this.Controls.Add(this.uxThoiDiemChinhSuaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxThoiDiemChinhSuaLabel);			
			//
			// uxThoiDiemChinhSua
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxThoiDiemChinhSua);
			this.uxThoiDiemChinhSua.Location = new System.Drawing.Point(160, 286);
			this.Controls.Add(this.uxThoiDiemChinhSua);
			//
			// uxThoiDiemCapNhatLabel
			//
			this.uxThoiDiemCapNhatLabel.Text = "ThoiDiemCapNhat:";
			this.uxThoiDiemCapNhatLabel.Location = new System.Drawing.Point(3, 312);
			this.Controls.Add(this.uxThoiDiemCapNhatLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxThoiDiemCapNhatLabel);			
			//
			// uxThoiDiemCapNhat
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxThoiDiemCapNhat);
			this.uxThoiDiemCapNhat.Location = new System.Drawing.Point(160, 312);
			this.Controls.Add(this.uxThoiDiemCapNhat);
			//
			// uxIDTinTucDanhMuc
			//				
			this.uxIDTinTucDanhMuc.DisplayMember = "IDTinTucDanhMucCha";	
			this.uxIDTinTucDanhMuc.ValueMember = "IDTinTucDanhMuc";	
			// 
			// TinTucEditControlBase
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			//this.Controls.Add(this.uxTableLayoutPanel);
			this.AutoScroll = true;
			this.Name = "TinTucEditControlBase";
			this.Size = new System.Drawing.Size(478, 311);
			//this.Localizable = true;
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).EndInit();			
			this.ResumeLayout(false);
			this.PerformLayout();
		}
		#endregion
				
		#region ComboBox List
		
				
		private Entities.TList<Entities.TinTucDanhMuc> _IDTinTucDanhMucList;
		
		/// <summary>
		/// The ComboBox associated with the IDTinTucDanhMuc property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.TinTucDanhMuc> IDTinTucDanhMucList
		{
			get {return _IDTinTucDanhMucList;}
			set 
			{
				this._IDTinTucDanhMucList = value;
				this.uxIDTinTucDanhMuc.DataSource = null;
				this.uxIDTinTucDanhMuc.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDTinTucDanhMucList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDTinTucDanhMuc property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDTinTucDanhMucList
		{
			get { return _allowNewItemInIDTinTucDanhMucList;}
			set
			{
				this._allowNewItemInIDTinTucDanhMucList = value;
				this.uxIDTinTucDanhMuc.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	}
}
